﻿using SF.Code.Extension.BusinessHelper;
using SG.Ling.AutoTranslator.Common;
using SG.Ling.AutoTranslator.Translation;

namespace SG.Ling.AutoTranslator.TTS
{
    public class SpeakControlSettings
    {
        public bool AutoSpeak { get; set; }

        public Direction Direction { get; set; }

        public string Voice { get; set; }

        public void WriteToAppData()
        {
            XmlSettings.WriteToAppData(this); 
        }

        public static SpeakControlSettings FromAppData()
        {
            return XmlSettings<SpeakControlSettings>.ReadFromAppData();
        }
    }
}
